﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject;
using NInject_Version2.configuration;

namespace NInject_Version2.dataLayer
{
  public class DataLayer1:IDataLayer
  {
    private string _path;

    [Inject]
    public DataLayer1(ISettings settings)
    {
      _path = settings.path;
    }

    public string GetData(string input)
    {
      return "Hello, how are you, dear " + input + " and Response1 is " + _path;
    }
  }

   public class DataLayer2:IDataLayer
  {
    private string _path;

    [Inject]
    public DataLayer2(ISettings settings)
    {
      _path = settings.path;
    }

    public string GetData(string input)
    {
      return "Hello, how are you, dear " + input + " and Response2 is " + _path;
    }
  }

  public interface IDataLayer
  {
    string GetData(string input);
  }
}
